<!DOCTYPE html>
<html>
  <head>
    <title>二审审核日志管理</title>
    <#include "/inc/base-style.ftl">
    <link rel="stylesheet" href="${staticPath}/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
    <#include "/style/auditForm/form-style.ftl">
  </head>
  <body class="${bodyClass}">
    <div class="wrapper">
      <!-- Main Header -->
     <#include "/inc/main-header.ftl">
      <!-- Left side column. contains the logo and sidebar -->
         <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <#include "/inc/slidebar-menu.ftl">
        </section>
        <!-- /.sidebar -->
      </aside>

   <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
			二审审核日志列表	 
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">
	    <!-- query start -->
			<div class="panel panel-default">
				  <div class="panel-body">
					    <form class="form-horizontal" role="form" id = "reportForm" action ="/crm/auditreport/list" method ="get">
					       <div class="control-group form-group"> 
				              <label class="control-label iinputfirst col-sm-2">审核时间:</label> 
								<div class="col-sm-2">
								   	<input type="text" class="form-control my_timepicker" id="subTime1"  name="subTime1" value ="${subTime1}" style="width: 180px;"/>
								</div>
								 <label class="control-label iinput col-sm-1 text-center">到&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label> 
								<div class="col-sm-2">
			                       <input type="text" class="form-control my_timepicker" id="subTime2"  name="subTime2" value ="${subTime2}" style="width: 180px;"/>
								</div>
								 <label class="control-label iinput col-sm-2">审核人:</label> 
								<div class="col-sm-2">
                                    <select class="form-control" id="auditorId" name="auditorId" style="width: 180px;">
			                       	    <option value=-1>全部</option>
										<#list auditRecords as auditorRecord>
										<#if auditorRecord.auditorId=="${auditorId}">
										   <option value="${auditorRecord.auditorId}" selected = "selected">${auditorRecord.auditorName}</option>
										<#else>
										   <option value="${auditorRecord.auditorId}" >${auditorRecord.auditorName}</option>
										 </#if>
										</#list> 
			                        </select>								
			                     </div>
				            </div>
							<div class="control-group form-group ">
								 <label class="control-label iinputfirst col-sm-2">关键字:</label> 
								<div class="col-sm-2">
			                       <input type="text" class="form-control" id="keyWords"  name="keyWords" value ="${keyWords}" style="width: 180px;"/>
								</div>
								<div class="col-sm-8">
			                        <input type="submit"  class="btn btn-primary btn-query" value="查询" />  
			                        <button type="button" id ="exportId" class="btn btn-info" id="exportBtn">审核结果导出Excel</button> 
			                    </div>
							</div>
					    </form>
				    </div>
				</div>
			<!-- query end -->
			<!-- /.box-header -->
			<div class="box-body">
				<table id="example" class="table table-hover">
					<thead>
						<tr>
							<th width="80">客户姓名</th>
							<th width="80">企业名称</th>
							<th width="80">客户职务</th>
							<th width="80">审核人姓名</th>
							<th width="90">操作人姓名</th>
							<th width="80">会籍经理</th>
							<th width="120">对客户评价</th>
							<th width="120">审核结果</th>
							<th width="80">审核时间</th>
							<th width="120">操作</th>
					</tr>
					</thead>	
					<tbody id ="c_tbody">
					<#if (lists?exists && lists?size>0) >
						<#list lists as clientInfoVo>
						<tr data-uid="${clientInfoVo.user_id}" data-uname="${clientInfoVo.user_id}" >
							<td>${clientInfoVo.uname}</td>
							<td>${clientInfoVo.com_name}</td>
							<td>${clientInfoVo.position}</td>
							<td>${clientInfoVo.auditorName}</td>
							<td>${clientInfoVo.operatorName}</td>
							<td>${clientInfoVo.memshipName}</td>
							<td>${clientInfoVo.auditRemark}</td>
							<td>${clientInfoVo.auditStatus}</td>
							<td>${clientInfoVo.auditTime?string("yyyy-MM-dd HH:mm:ss")}</td>
							<td>
								<a href="/crm/auditreport/auditReportViewPage?auditId=${clientInfoVo.auditId}" class="btn btn-xs btn-primary edit-btn">查看审核报告</a> 
							</td>
						</tr>
						</#list>
					<#else>
				                暂无数据
				     </#if>
					</tbody>
				</table>
			</div>
			<div class="box-footer">
			<!--	<a id="dict-create-btn" href="javascript:;" class="btn btn-success pull-left">新建字典项</a> -->
				<@zhd.page pm url />
			</div>
		</div>

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
    <#include "/inc/main-footer.ftl">
   <!-- Control Sidebar -->
      <!-- /.control-sidebar -->
      <!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
      
    </div><!-- ./wrapper -->

	<#include "/inc/base-script.ftl">
    <!-- 自定义script -->
	<#include "/script/auditReport/auditReportScript.ftl">
	<script>
	$(function(){
     $('.my_timepicker').datetimepicker({
        dayViewHeaderFormat: 'YYYY MMMM',
        locale: 'zh-cn',
        format: 'YYYY-MM-DD HH:mm:ss',
        keepInvalid: true
    });  
  // 续费开始  
  	
    $('#subTime1,#subTime2').data('DateTimePicker').useCurrent(false);
   
    $("#subTime1").on("dp.change", function (e) {
        $('#subTime2').data("DateTimePicker").minDate(e.date);
    });
    $("#subTime2").on("dp.change", function (e) {
        $('#subTime1').data("DateTimePicker").maxDate(e.date);
    });   
});
</script>
  </body>
</html>

